| Conditions | 5 |
| Paths | 2 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | |||
| 17 | var queryPrefix = ''; |
||
| 18 | if ((queryType === 'Fields') || (queryType === 'Items')) { |
||
| 19 | queryPrefix = '_api/web/lists/GetByTitle(\'' + crtListName + '\')/' + queryType; |
||
| 20 | } else if (queryType === 'Lists') { |
||
| 21 | queryPrefix = '_api/web/' + queryType; |
||
| 22 | } |
||
| 23 | return { |
||
| 24 | url: targetSharePointURL + queryPrefix, |
||
| 25 | headers: headerOptions, |
||
| 26 | json: true |
||
| 27 | }; |
||
| 28 | } |
||
| 29 | } |
||
| 30 |